<?php
/**
 * PluginRunner run plugins.
 * @package Core
 * @subpackage Runner
 * @category Runner
 * @author kovacsricsi
 */

class PluginRunner implements IRunner
{
	/**
	 * run all plugins from DIR_CLASSES/Plugin directory
	 * @access public
	 * @return void
	 */
	public function run()
	{
		$plugins = DirectoryHandler::getFiles(DIR_CLASSES . "/Plugin");

		foreach(DirectoryList::getFiles(DIR_CLASSES . "/Plugin") as $plugin) {
			$pluginName = str_replace(".php", "", $plugin);
			new $pluginName;
		}
	}
}

?>